/* 注册全局组件，ps:需要在 global.d.ts 文件中注册才能提示 */
const components = <any>[
	import('@/components/DictCheckbox/index.vue'),
	import('@/components/DictRadio/index.vue'),
	import('@/components/DictSelect/index.vue'),
	import('@/components/DictTag/index.vue'),
	import('@/components/DictText/index.vue'),
	import('@/components/YesNo/index.vue'),
	import('@/components/CText/index.vue'),
	import('@/components/Echarts/index.vue')
]
export default {
	install: (app: any) => {
		components.forEach((component: any) => {
			component.then((mod: any) => {
				const { default: defa } = mod
				app.component(defa.name, defa)
			})
		})
	}
}
